package com.whitema.test2;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        InputStreamReader reader = new InputStreamReader(Demo1.class.getClassLoader().getResourceAsStream("names.txt"));

        BufferedReader br = new BufferedReader(reader);

        String line;
        while ( (line = br.readLine()) !=null ){
            System.out.println(line);
        }
        br.close();
    }
}
